-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workaround for missing lconv support in android #328
Conversation
@vitaut , do you have any idea why mingw fails and VS is fine? I don't have mingw environment at the moment |
What I could do blindly is to catch |
Thanks for the PR. According to this thread:
So I changed it back to C locale but added a detection for empty |
Hi, I have the same issue, but your fix (3cefa72) does not work. It's choosing the default
Anything I can do to help? |
@Gachapen Thanks for testing it. Could you check what is |
@vitaut Just checked, it is 1. |
@Gachapen Thanks. Just realized that my "fix" is rubbish because the |
@vitaut Hehe, yes I see that now too :) This is a bit too complex for me (I'd just |
I will do the proper SFINAE version right now. |
SFINAE with c++98 looks really messy... What do you think about this approach? dpantele@998bd2c |
@dpantele Definitely looks better but I wonder why the tests are failing on mingw. |
@vitaut I haven't pushed changes to the pull request branch, now all builds pass. |
I can confirm that this now builds. Though is it safe to assume that the size should be less or equal to 1 when it has no members? |
@dpantele Got it. Could you squash the commits and rebase to current master? @Gachapen You are right, the size check is not very robust. A better option is to detect |
Ok, rebased and cleaned-up in 45a1509 |
Merged, thanks! |
Fixing #327
Better to check if this API really works on Android.
Also please check if that is an OK use for the StringRef.